package com.edais.persistence;

import java.util.List;

import com.edais.domain.OrderBalance;
import com.edais.domain.PerMatchCredit;
import com.edais.domain.PreMatchLoan;

public interface PerMatchMapper {
	/**
	 * 生成预匹配订单余额
	 */
	public void insertOrderBalanceInfo(OrderBalance temp);
	
	/**
	 * 根据订单id更新预匹配订单余额
	 */
	public void updateOrderBalanceInfoByOrderId(OrderBalance temp);
	
	/**
	 * 根据订单id获取预匹配订单余额
	 */
	public OrderBalance getOrderBalanceByOrderId(Integer orderId);
	
	/**
	 * 生成预匹配债券列表
	 */
	public void insertPerMatchCrdit(PerMatchCredit temp);
	
	/**
	 * 根据订单id删除预匹配债券
	 */
	public void deletePerMatchCrditByOrderId(Integer orderId);
	
	/**
	 * 根据订单id获取预匹配债券
	 */
	public List<PerMatchCredit> getPerMatchCrditByOrderId(Integer orderId);
	
	/**
	 * 根据订单余额获取预匹配标的
	 */
	public List<PreMatchLoan> getPreMatchLoanByOrderBalance(PreMatchLoan temp);
	
}
